package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.StudentBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface IStudentMapper extends BaseMapper<StudentBean> {

    IPage<StudentBean> findStudents( Page pageNum,@Param("name") String name,
                                    @Param("className") String className,
                                    @Param("roomName") String roomName);

    StudentBean findById(Integer studentId);
}
